// pages/mine//posterList/posterList.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    imgArray: [{
      url: 'https://api.shulanfd.com/aist-filesvr-web/api/files/bf3d0bf324064545bf4426f32e6e4e9f',
      title: '温馨提示'
    },{
        url: 'https://api.shulanfd.com/aist-filesvr-web/api/files/56ce0a666a844854a1ea7175b987ae2d',
      title: '除夕'
    }, {
        url: 'https://api.shulanfd.com/aist-filesvr-web/api/files/fbff59af51fc47c69fb06c6420df6cda',
      title: '春节快乐'
    }, {
        url: 'https://api.shulanfd.com/aist-filesvr-web/api/files/74c5a2ba26c7431ab42e3765156085f3',
      title: '拜大年'
    }, {
        url: 'https://api.shulanfd.com/aist-filesvr-web/api/files/ef98c5cb9ef0453e85b52d683484bd3f',
      title: '恭贺新喜'
    }, {
        url: 'https://api.shulanfd.com/aist-filesvr-web/api/files/fc9c024fad88442bafea4c62a8e95828',
      title: '过年了'
    }, {
        url: 'https://api.shulanfd.com/aist-filesvr-web/api/files/51350c94c4624b45bf939c8950b9fd2b',
      title: '新春大吉'
    }, {
        url: 'https://api.shulanfd.com/aist-filesvr-web/api/files/1c5598c8c56c4fbc87f39d8a313800c0',
      title: '初一'
    }, {
        url: 'https://api.shulanfd.com/aist-filesvr-web/api/files/840b64ce7bbb40b7a5284144f03066bb',
      title: '初二'
    }, {
        url: 'https://api.shulanfd.com/aist-filesvr-web/api/files/78bb577504174640b1dc2bd1cd770a5e',
      title: '初三'
    }, {
        url: 'https://api.shulanfd.com/aist-filesvr-web/api/files/5f18aa94ad0945a6b5029fbe8977c08d',
      title: '初四'
    }, {
        url: 'https://api.shulanfd.com/aist-filesvr-web/api/files/57d1857d7ba54ac99eb6c7c922d366ae',
      title: '初五'
    }, {
        url: 'https://api.shulanfd.com/aist-filesvr-web/api/files/e2cdf863eac449078b051e61b71a3366',
      title: '开工大吉'
    }, {
        url: 'https://api.shulanfd.com/aist-filesvr-web/api/files/2a0f5de75de64e9ba9e6c4047b3ca9c9',
      title: '开工大吉'
    }, {
        url: 'https://api.shulanfd.com/aist-filesvr-web/api/files/a6fa21f9a73c4c5b829b3b7e2c6292d4',
      title: '开工大吉'
      }],
    showList:false
  },
  goPosterDetails(e) {
    console.log(e.currentTarget.dataset.items)
    let data = e.currentTarget.dataset.items;
    wx.navigateTo({
      url: '/pages/mine/posterDetails/posterDetails?url=' + data.url,
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
    setTimeout(() => {
      this.setData({
        showList: true
      });
    }, 5000);
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function() {

  },
})